import request from '@/utils/request'

// 查询alipayment列表
export function listAlipayment(query) {
  return request({
    url: '/alipayment/list',
    method: 'get',
    params: query
  })
}

// 分页查询alipayment列表
export function listAlipaymentByPage(query) {
  return request({
    url: '/alipayment/page',
    method: 'get',
    params: query
  })
}

// 查询alipayment
export function getAlipayment(id) {
  return request({
    url: '/alipayment/' + id,
    method: 'get'
  })
}

// 新增alipayment
export function addAlipayment(data) {
  return request({
    url: '/alipayment',
    method: 'post',
    data: data
  })
}

// 修改alipayment
export function updateAlipayment(data) {
  return request({
    url: '/alipayment',
    method: 'put',
    data: data
  })
}

// 删除alipayment
export function deleteAlipayment(id) {
  return request({
    url: '/alipayment/' + id,
    method: 'delete'
  })
}
